//
//  LBShenqingSuccessVC.m
//  V-Learn
//
//  Created by Apple on 2019/1/1.
//  Copyright © 2019 yxk. All rights reserved.
//

#import "LBShenqingSuccessVC.h"

@implementation LBShenqingSuccessVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"申请成功";
    
    UIImageView *icon = [[UIImageView alloc] init];
    icon.image = [UIImage imageNamed:@"wk_success"];
    [self.view addSubview:icon];
    [icon makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(155*kScaleFit, 133*kScaleFit));
        make.top.mas_equalTo(75*kScaleFit);
        make.centerX.mas_equalTo(self.view);
    }];
    
    UILabel *failLab = [UILabel labelWithText:@"申请成功" andTextColor:rgb(233,84,18) andName:nil andFontSize:15*kScaleFit];
    [self.view addSubview:failLab];
    [failLab makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(icon.mas_bottom).mas_equalTo(20*kScaleFit);
        make.centerX.mas_equalTo(self.view);
    }];
    
    UILabel *shopLab = [UILabel labelWithText:@"购买课程可加入微信群" andTextColor:rgb(102,102,102) andName:nil andFontSize:15*kScaleFit];
    [self.view addSubview:shopLab];
    [shopLab makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(failLab.mas_bottom).mas_equalTo(3*kScaleFit);
        make.centerX.mas_equalTo(self.view);
    }];
    
    //立即购买
    UIButton *shopButton = [[UIButton alloc] init];
    [self.view addSubview:shopButton];
    shopButton.layer.cornerRadius = 22;
    shopButton.layer.masksToBounds = YES;
    [shopButton makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(44);
        make.top.mas_equalTo(shopLab.mas_bottom).mas_equalTo(62*kScaleFit);
    }];
    [shopButton setTitle:@"生成规划" forState:UIControlStateNormal];
    [shopButton setTitleColor:rgb(255,255,255) forState:UIControlStateNormal];
    shopButton.titleLabel.font = LBFont(18);
//    shopButton.backgroundColor = rgb(233,84,18);
    [shopButton setBackgroundImage:LBImage(@"wk_shadow_btn") forState:UIControlStateNormal];
    [shopButton addTarget:self action:@selector(clickShopBtn:) forControlEvents:UIControlEventTouchUpInside];

}
- (void)clickShopBtn:(UIButton *)sender{
//    NSLog(@"点击了立即购买");
}
/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */


@end
